//
//  IdleFishUserDefaultsManager.swift
//  IdleFishUserDefaultsManager
//
//  Created by Ben on 2021/9/10.
//

import Foundation

class IdleFishUserDefaultsManager {
    
    static var shared: IdleFishUserDefaultsManager = IdleFishUserDefaultsManager()
    
    var myChannels: [HomeRecommendGoodsCategoryModel] = []
    
    
    func setValue(value: Any?, key: String) {
        let defaults = UserDefaults.standard
        defaults.set(value, forKey: key)
        defaults.synchronize()
    }
    
    func getValue(key: String) -> Any? {
        return UserDefaults.standard.value(forKey: key)
    }
}
